// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
    return {
        name: "form",
        caption: "",
        codeName: "DATA_0005",
        enableAutoSave: false,
        entityCodeName: "IBIZOrder",
        keyPSAppDEField: "IBIZOrderId",
        majorPSAppDEField: "IBIZOrderName",
        cssName: "",
        controlType: "FORM",
        formStyle: "",
        valueRule: getValueRule(),
        createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
        detailModel: getDetailModel(),
        ctrlMsgModel:[
    ],
        uiEngineModel: [
            {
                name: 'engine_form',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'LOAD;SAVE;REMOVE',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
function getValueRule() {
    return [
    ]
}

function getCreateDefaultItems() {
    return [
        {
            createDV: "",
            createDVT: "CURTIME",
            property: "ordertime",
            valueFormat: "YYYY-MM-DD",
                        dataType: 5,
        },
    ]
}

function getUpdateDefaultItems() {
    return [
    ]
}
function getDetailModel() {
    return {
        formpage1: {
            caption: "基本信息",
            captionItemName: "",
            name: "formpage1",
            codeName: "formpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        group1: {
            caption: "订单基本信息",
            captionItemName: "",
            name: "group1",
            codeName: "group1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        orderuid: {
            caption: "订单编号",
            captionItemName: "",
            name: "orderuid",
            codeName: "orderuid",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "OrderUID",
            dataType: "25",
            required: true,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colLG: 8,colMD: 8,colSM: 8,colXS: 8,},
        },
        ibizordername: {
            caption: "订单名称",
            captionItemName: "",
            name: "ibizordername",
            codeName: "ibizordername",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "IBIZOrderName",
            dataType: "25",
            required: true,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colLG: 8,colMD: 8,colSM: 8,colXS: 8,},
        },
        ordertime: {
            caption: "订单时间",
            captionItemName: "",
            name: "ordertime",
            codeName: "ordertime",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "YYYY-MM-DD",
            fieldCodeName: "OrderTime",
            dataType: "5",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            editRules: {
                editorType: 'DATEPICKEREX_NOTIME',
            },
            layout:{parentLayout: 'TABLE_24COL',colLG: 8,colMD: 8,colSM: 8,colXS: 8,},
        },
        ibizcustomername: {
            caption: "客户名称",
            captionItemName: "",
            name: "ibizcustomername",
            codeName: "ibizcustomername",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "IBIZCustomerName",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            editRules: {
                editorType: 'PICKER',
            },
            layout:{parentLayout: 'TABLE_24COL',colLG: 8,colMD: 8,colSM: 8,colXS: 8,},
            valueItemName: "ibizcustomerid",
        },
        ordertype: {
            caption: "订单类型",
            captionItemName: "",
            name: "ordertype",
            codeName: "ordertype",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "OrderType",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            codeListTag: "common__DYNAORDERTYPE",
            layout:{parentLayout: 'TABLE_24COL',colLG: 8,colMD: 8,colSM: 8,colXS: 8,},
        },
        orderstate: {
            caption: "订单状态",
            captionItemName: "",
            name: "orderstate",
            codeName: "orderstate",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "OrderState",
            dataType: "25",
            required: false,
            enableCond: 0,
            ignoreInput: 0,
            convertToCodeItemText: false,
            codeListTag: "common__ORDERSTATE",
            layout:{parentLayout: 'TABLE_24COL',colLG: 8,colMD: 8,colSM: 8,colXS: 8,},
        },
        memo: {
            caption: "备注",
            captionItemName: "",
            name: "memo",
            codeName: "memo",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "Memo",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 6,colSM: 6,colXS: 6,},
        },
        grouppanel1: {
            caption: "订单明细",
            captionItemName: "",
            name: "grouppanel1",
            codeName: "grouppanel1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        druipart1: {
            caption: "",
            captionItemName: "",
            name: "druipart1",
            codeName: "druipart1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "DRUIPART",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
    }
}
export const model = getModel();
